package me.raih.mapper;

import me.raih.pojo.po.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Raih
 * @Time 2020/12/6  14:00
 */
@Mapper
@Repository
public interface CategoryMapper {


    int findCategoryByName(@Param("name") String name);

    Category findCategoryByNo(@Param("no") int no);

    List<Category> findCategory();

}
